//
//  HMSportMainViewController.m
//  XRSport
//
//  Created by acer on 16/10/21.
//  Copyright © 2016年 apple. All rights reserved.
//

#import "HMSportMainViewController.h"

@interface HMSportMainViewController ()

@end

@implementation HMSportMainViewController
#pragma mark - 运动方式按钮点击
- (IBAction)sportBtnClick:(UIButton *)sender {
    HMSportType type = sender.tag;
    
//    HMSportSportingViewController *sportVC = [[HMSportSportingViewController alloc] init];
    UIStoryboard *sb = [UIStoryboard storyboardWithName:@"HMSportSporting" bundle:nil];
    HMSportSportingViewController *VC = sb.instantiateInitialViewController;
    
    VC.sportType = type;
    
    [self presentViewController:VC animated:YES completion:nil];
    
}


- (void)viewDidLoad {
    [super viewDidLoad];

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
